package com.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.model.Post;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 公司岗位表 Mapper 接口
 * </p>
 *
 * @author Damon
 * @since 2021-05-06
 */
public interface PostDao extends BaseMapper<Post> {
  @Select("select d.company_name,c.* from post c,users_company d where c.users_key = d.user_key AND d.user_key = 101")
    public Page<Post> listPage(Page page);
    public Page<Post> listPage(Page page, @Param("post") Post post);

}
